package com.codergd.gra.service;

import com.codergd.gra.bean.UserRe;
import com.codergd.gra.dao.UserReDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserReService {
    @Autowired
    UserReDao userReDao;
    //创建简历投递
    public int addUserRe(UserRe userRe){
        return userReDao.addUserRe(userRe);
    }

    public int updateState(int id,int state){
        return userReDao.updateState(id,state);
    }

    public List<UserRe> userReC(int cid,int state){
        return userReDao.userReC(cid,state);
    }

    public List<UserRe> userReC1(int cid,int state){
        return userReDao.userReC1(cid,state);
    }

    public List<UserRe> userReC3(int cid,int state){
        return userReDao.userReC3(cid,state);
    }

    public List<UserRe> userReU(int uid,int state){
        return userReDao.userReU(uid,state);
    }

    public List<UserRe> userReUM(int uid){
        return userReDao.userReUM(uid);
    }

    public int updatePy(int id,String py){
        return userReDao.updatePy(id, py);
    }

    public int updateScore(int id,int score){
        return userReDao.updateScore(id,score);
    }
}
